package com.yxh.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 我的－地区选择
 * 
 * @author luoming
 */
public class LessonDto extends BaseDto implements Serializable {

	private static final long serialVersionUID = 1L;
	public String lessonId; // 课程id
	public String name; // 课程名称
	public String intro; // 课程介绍
	public String url;// 课程图片
	public int percent; // 课程进度
	public String isSelected; // 0未选中 1选中
	public String isDefault;// 0 不是默认 1默认

	/** 我的课程 **/
	public String state;// 0:当前 , 1:已完成 2: 已取消
	public String isTitle;// 0:显示 1:不显示
	
	public String pos;//第几页
	
	public List<LessonItemDto> list = new ArrayList<LessonItemDto>(); // 课程内容
	public List<LessonDateDto> dateList = new ArrayList<LessonDateDto>(); // 课程节点

	public LessonDto(String lessonId, String name) {
		this.lessonId = lessonId;
		this.name = name;
	}

	public LessonDto(String id, String state, String isTitle) {
		this.lessonId = id;
		this.state = state;
		this.isTitle = isTitle;
	}

	public LessonDto() {

	}

	@Override
	public String toString() {
		return "LessonDto [lessonId=" + lessonId + ", name=" + name
				+ ", intro=" + intro + ", url=" + url + ", percent=" + percent
				+ ", isSelected=" + isSelected + ", isDefault=" + isDefault
				+ ", state=" + state + ", isTitle=" + isTitle + ", list="
				+ list + ", dateList=" + dateList + "]";
	}

}
